﻿<form class="form-horizontal" role="form" name="editForm" ng-show="isVisible" ng-controller="roleEditCtrl" show-validation>
    <div class="form-group">
        <label for="Name" class="col-sm-1 control-label">Name</label>
        <div class="col-sm-3">
            <select class="form-control" id="Name" ng-model='item.Name' required>
                @foreach (var item in Model.Roles)
                {
                    <option value="@item.Name">
                        @item.Name
                    </option>
                }
            </select>
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-offset-1 col-sm-3">
            <button type="submit" class="btn btn-default" ng-click="save()">Save</button>
            <button type="submit" class="btn btn-default" ng-click="cancel()">Cancel</button>
        </div>
    </div>
</form>
